package com.example.lotterysystem;

import com.example.lotterysystem.service.SmsService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @Author xuejiao
 * Data 2025/4/30 13:23
 */
@SpringBootTest
public class VerificationCodeService {
    @Autowired
    private SmsService smsService;
    @Test
    void testSendCode() {
        smsService.sendSms("15172970452");
        System.out.println("从redis获取的验证码为：" + smsService.getSms("15172970452"));
    }

}
